﻿namespace _01.SchoolExercise
{
    using System;
    using System.Collections.Generic;
    using System.Linq;

    public class Teacher : People, ICommentable
    {
        private List<Discipline> disciplines;

        public Teacher(string name)
            : base(name)
        {
            this.Disciplines = new List<Discipline>();
        }

        public string Comment { get; set; }

        public List<Discipline> Disciplines
        {
            get
            {
                return this.disciplines;
            }

            private set
            {
                this.disciplines = value;
            }
        }
    }
}
